//
//  DnRollMenu.h
//  DnRollTabbarMenu
//
//  Created by Ngoc on 27/11/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DnRollMenuTableView.h"
#import "DnRollHorizontalMenuTableCell.h"
#import "DnRollMenuItem.h"
#import "DnButton.h"
#import "FontNames.h"

@protocol DnRollMenuDelegate <NSObject>

-(UIView*) menu:(NSInteger) menuIndex itemAtIndex:(NSInteger) itemIndex;
-(UIView*) navigationMenuItemAtIndex:(NSInteger) itemIndex;
-(NSInteger) numberOfMenus;
-(NSInteger) numberItemsOfMenu:(NSInteger) menuIndex;
@end

@interface DnRollMenu : UIView <DnRollHorizontalMenuTableCellDelegate, DnRollMenuTableViewDelegate> {
   // NSDictionary *menus;
    DnRollMenuTableView *_menuTableView;
    DnRollMenuTableView *_navigationView;
    NSMutableArray *_navigationMenuItems;
    NSMutableArray *_navigationMenus;
    id<DnRollMenuDelegate> _dataSource;
    NSMutableArray *_menus;
    NSMutableArray *_allMenuItems;
    NSInteger _currentMenuIndex;
    NSInteger _currentItemIndex;
    
    UIView *_currentNavItem;
}
//-(id) initWithTestData;
@property(nonatomic, retain) id<DnRollMenuDelegate> dataSource;
-(void) changeToFirstMenu;
@end

